package com.example.barcodeapp.ui.home.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.Toolbar;
import androidx.cardview.widget.CardView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentPagerAdapter;
import androidx.viewpager.widget.ViewPager;

import com.example.barcodeapp.R;
import com.example.barcodeapp.base.BaseActivity;
import com.example.barcodeapp.interfaces.IBasePersenter;
import com.example.barcodeapp.ui.home.fragment.vcount;

import java.util.ArrayList;

import butterknife.BindView;
import butterknife.ButterKnife;
import q.rorbin.verticaltablayout.VerticalTabLayout;

public class RiLiYueKeJiaoShiLeiBiaoActivituy extends BaseActivity {
    @BindView(R.id.oneduione_img)
    ImageView oneduioneImg;
    @BindView(R.id.textView3)
    TextView textView3;
    @BindView(R.id.oneduione_neirong1)
    TextView oneduioneNeirong1;
    @BindView(R.id.oneduione_neirong2)
    TextView oneduioneNeirong2;
    @BindView(R.id.oneduione_neirong3)
    TextView oneduioneNeirong3;
    @BindView(R.id.oneduione_neirong4)
    TextView oneduioneNeirong4;
    @BindView(R.id.linearLayout3)
    LinearLayout linearLayout3;
    @BindView(R.id.textView12)
    TextView textView12;
    @BindView(R.id.textView13)
    TextView textView13;
    @BindView(R.id.imageView4)
    ImageView imageView4;
    @BindView(R.id.textView14)
    TextView textView14;
    @BindView(R.id.textView15)
    TextView textView15;
    @BindView(R.id.cardView2)
    CardView cardView2;
    @BindView(R.id.tablayout)
    VerticalTabLayout tablayout;
    @BindView(R.id.viewpager)
    ViewPager viewpager;
    @BindView(R.id.iv_back_circle)
    ImageView ivBackCircle;
    @BindView(R.id.ff_back_contener)
    FrameLayout ffBackContener;
    @BindView(R.id.iv_back)
    ImageView ivBack;
    @BindView(R.id.tv_location)
    TextView tvLocation;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.ll_to_search)
    LinearLayout llToSearch;
    @BindView(R.id.right_iv)
    ImageView rightIv;
    @BindView(R.id.right_iv_two)
    ImageView rightIvTwo;
    @BindView(R.id.tv_rught_)
    TextView tvRught;
    @BindView(R.id.tv_right_two)
    TextView tvRightTwo;
    @BindView(R.id.toolBar)
    Toolbar toolBar;
    @BindView(R.id.laoshijieshao)
    TextView laoshijieshao;

    @Override
    protected int getLayout() {
        return R.layout.riliyuyuelaoshi_layout_activity;
    }

    @Override
    protected void initView() {
        setToolBar(true, false, true, false, false);
        setTitle("预约日历", R.color.black, R.color.white);
        ArrayList<Fragment> list = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            list.add(new vcount((13 + i) + ":00" + "---" + (14 + i) + ":00"));
        }
        tablayout.setTabHeight(130);
        ArrayList<String> strings = new ArrayList<>();

        for (int i = 0; i < 10; i++) {
            strings.add("今天" + (20 + i) + "日");
        }
        viewpager.setAdapter(new FragmentPagerAdapter(getSupportFragmentManager()) {
            @NonNull
            @Override
            public Fragment getItem(int position) {
                return list.get(position);
            }

            @Override
            public int getCount() {
                return list.size();
            }

            @Nullable
            @Override
            public CharSequence getPageTitle(int position) {

                return strings.get(position);

            }
        });
        tablayout.setupWithViewPager(viewpager);
        laoshijieshao.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent instant = new Intent(RiLiYueKeJiaoShiLeiBiaoActivituy.this, JiaoShiXiangQingJieMianActivity.class);
                instant.putExtra("neirong","状态");
                instant.putExtra("data",2);
                startActivity(instant);
            }
        });
    }

    @Override
    protected IBasePersenter initPersenter() {
        return null;
    }

    @Override
    protected void initData() {

    }

}
